<%@ page language="java" pageEncoding="UTF-8"%>
<%@include file="/views/common/include/taglib.jsp"%>
<script src="${ctx}/js/controllers/store/storeinfo/StoreInfoListController.js" type="text/javascript"></script>
<style type="text/css">
	.panel{
		
		/* margin-top:27px; */
		border-bottom:1px solid #e6e6e6;
		background-color:#f5f5f5;
		font-size:14px;
		font-family:"微软雅黑";
		width:100%;
	}
	.wrap{
		border:1px solid #e6e6e6;
	}
	.wrap .panel{
		margin:0;
	}
	.forword_area{
		height: 18px;
	    width: 4px;
	    margin-top: 15px;
	    margin-left: 25px;
	    float:left;
	    background-color:#98bfe4;
	}
	.location{
		color: #262535;
		font-weight:700;
	    font-size: 14px;
	    float:left;
	    margin-left: 17px;
	    margin-top:15px;
	    font-family:"微软雅黑";
	}
</style>
<link rel="stylesheet" href="${ctx }/css/dlifestyle/store.css"/>
 		<div style="top:130px;position:fixed;height:30px;font-size: 14px;  font-family: '微软雅黑';margin-left:-236px;">
		当前位置:${sessionScope.currcent_position}
	    </div> 
		<section style="padding-top:27px;">
			<div class="wrap">
			<div class="panel">
				<div class="forword_area"></div>
				<div class="location">店面信息</div>
				<div style="float:right;height:48px;">
					<img src="${ctx }/images/store/store_name.png" style="float: left;line-height: 18px;font-size: 14px;margin-left:5px;margin-top:15px;"/>
				    <span style="float:left;font-size: 14px;margin-left:15px;margin-top:15px;font-family:'微软雅黑';color: #262535;font-weight:700;">店铺名称&nbsp;:</span>
				    <input type="text" id="name" value="${storeInfo.name }" disabled="disabled" style="margin-left:5px;width:90px;margin-top:15px;float: left;font-size: 14px;border:none;background-color:#f5f5f5;olor: #262535;font-weight:700;font-family:'微软雅黑';"/>
				</div>
			</div>
			<div id="form" class="form" style="min-height:492px;overflow:hidden;padding-bottom:20px;">
				<div class="itemEditMap" style="float:left;margin-bottom:20px;">
					<input id="shopId" type="hidden" value="${storeInfo.id }">
					<input id="imageLogo" type="hidden" value="${storeInfo.logo }">
					<div class="flEditMap" style="margin-top:43px;margin-left:30px;height:166px;width:158px">
					
						<c:if test="${storeInfo.logo == null || storeInfo.logo == ''}">
								<img id="preview3" style="width:158px;height:166px;float:left;" title="快上传店铺头像吧" src="${ctx}/images/store/shop_logo.jpg" />
						</c:if>
						<c:if test="${storeInfo.logo != null && storeInfo.logo != ''}">
							<img id="preview3" style="width:158px;height:166px;float:left;" src="${sessionScope.image_logo}${storeInfo.logo}" />
						</c:if>
						<div class="mtjxsa" style="float:left;margin-top: 40px;width:100%;">
							<p style="text-align: left" id="imageBtn">
								  <input type="hidden" name="imageLogoUrl" id="imageLogoUrl" /> 
							  </p>
<!-- 							  <div style="float:left;margin-top:-40px;margin-left:50px;"> -->
<!-- 						    	  <div class="fl" style="height:57px;width:57px;border-radius: 2px"> -->
<!-- 						          </div> -->
<!-- 						      </div> -->
						      
							    	  <div style="text-align:center;">
							    		  <button style="width:100px;height:30px;background-color:#FFC155;border-radius: 4px;color: #fff;font-weight:700;font-size:14px;border: 0px;" class="acblu tctpsc">修改图像</button>
							          </div>
							    
							<%@include file="/views/common/uploader/picture.jsp" %>
							
						  </div>
					</div>
				</div>
				<div style="overflow:hidden;padding:40px 0 0 40px;">
				<div class="itemEditMap" style="float:left;margin-bottom:20px;">
					<p><img src="${ctx }/images/store/scope_business.png"/><span style="margin-left: 12px;font-size:14px;color:#919191;font-weight:700">店铺说明:</span></p>
					<textarea id="descrip" maxlength="200" style="height:70px;width:660px;;margin-top:10px;resize:none;padding:10px 10px 10px 10px;font-size:12px;text-indent:24px;border:1px solid #757575">${storeInfo.descrip }</textarea>
				</div>
				<div id="itemEditMap" style="float:left;margin-bottom:20px;">
					<p style="margin-bottom:13px;"><img src="${ctx }/images/store/shop_hours.png"/ style="vertical-align:-2px;"><span style="margin-left: 12px;color:#919191;font-weight:700">营业时间:</span></p>
					<p style="margin-top: 10px;">
					<input type="text" id="beginTime"  value="${storeInfo.beginTime }" 
						onClick="WdatePicker({dateFmt:'H:mm:ss',readOnly:true,minDate:'00:00:00',maxDate:'24:00:00'})" style="height: 29px;line-height:29px;border:1px solid #757575;width: 184px;text-indent:25px;"/>&nbsp;
					<span style="font-size:14px">至</span>&nbsp;
					<input type="text" id="endTime" value="${storeInfo.endTime }" 
					 onClick="WdatePicker({dateFmt:'H:mm:ss',readOnly:true,minDate:'00:00:00'})" style="height: 29px;line-height:29px;border:1px solid #757575;width: 184px;text-indent:25px;"/>
				</div>
				<div id="itemEditMap" style="float:left;margin-bottom:20px;">
						<p><img src="${ctx }/images/store/phone.png" style="vertical-align:-2px;" /><span style="margin-left: 12px;color:#919191;font-weight:700">联系电话:</span></p>
						<input type="text" id="phone" value="${storeInfo.phone }" onblur="checkPhone();" style="width: 320px;height: 24px;line-height:24px;border-left: none;text-indent:25px;border-right: none;border-top: none;border-bottom: 1px solid #757575;margin-top: 10px;"/>
						<input type="text" id="phone2" value="${storeInfo.phone2 }" onblur="checkPhone2();"  style="width: 320px;height: 24px; line-height:24px; border-left: none;border-right: none;text-indent:25px;border-top: none;border-bottom: 1px solid #757575;margin-left:10px;margin-top: 10px;"/>
				</div>
				<div id="itemEditMap" style="float:left;margin-bottom:20px;">
						<p><img src="${ctx }/images/store/shop_address.png"  style="vertical-align:-2px;" /><span style="margin-left: 15px;color:#919191;font-weight:700">店铺地址:</span></p>
						<input type="text" id="address" value="${storeInfo.address }" style="width:660px;height: 24px;border-left: none;border-right: none;text-indent:25px;border-top: none;border-bottom: 1px solid #757575;margin-top: 10px;"/>
				</div>
			</div>
				<div id="itemEditMap" style="text-align:right;padding-right:70px;">
						<input type="button" onclick="saveShopInfo()" value="保存"  id="save" />
				</div>
				
				
			</div>
		</div>
		</section>  
		<%@include file="/views/common/footer.jsp"%>         
	<script type="text/javascript">
		var ctx = '${ctx}';
		setCtx(ctx);
	</script>
	<!-- 解决ie 6 7 8 9不能显示placeholder的问题 -->
	<script src="${ctx}/js/lib/jquery.JPlaceholder.js"></script>
